//*************intSLList.h **********/
//  singly-linked list class to store integers
#ifndef INT_LINKDE_LIST
#define INT_LINKED_LIST

class IntSLLNode{
    public:
    IntSLLNode(){
        next = 0;
    }
    IntSLLNode(int el,IntSLLNode *ptr = 0){
        info = el;
        next = ptr;
    }
    int info;
    IntSLLNode *next;
    private:
        IntSLLNode *head,*tail;
};

class IntSLList{
    public:
        IntSLList(){
                head = tail = 0;
        }
        ~IntSLList();
        int isEmpty(){
            return  head == 0;
        }
        void addToHead(int);
        void addToTail(int);
        int deleteFromeHead();  //delete the head and rturn its info;
        int deleteFromTail();   //delete the tail and return ist info;
        void deleteNode(int);
        bool isInList(int) const;
        private:
            IntSLLNode *head,*tail;

};
#endif